﻿@model MainViewModel

<!DOCTYPE html>
<html>
	<head>
		<title>@this.Model.PageTitle</title>
		<meta name="author" content="@RuntimeSettings.MetaAuthor" />
		<meta name="keywords" content="@RuntimeSettings.MetaKeywords" />
		<meta name="description" content="@RuntimeSettings.MetaDescription" />
        <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" />
	
		<link href="@this.Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
		<link href="@Url.Content("~/Content/shCoreDefault.css")" rel="stylesheet" type="text/css"/>
		<link href="@Url.Content("~/Content/jquery.lightbox-0.5.css")" rel="stylesheet" type="text/css" />

		<script src="@Url.Content("~/Scripts/jquery-1.7.2.js")" type="text/javascript"></script>
		<script src="@Url.Content("~/Scripts/jquery.lightbox-0.5.js")" type="text/javascript"></script>
		<script src="@Url.Content("~/Scripts/jquery.blockUI.js")" type="text/javascript"></script>
		<script src="@Url.Content("~/Scripts/jquery.cookie.js")" type="text/javascript"></script>

		<script src="@Url.Content("~/Scripts/shCore.js")" type="text/javascript"></script>
		<script src="@Url.Content("~/Scripts/shBrushCSharp.js")" type="text/javascript"></script>
		<script src="@Url.Content("~/Scripts/shBrushCss.js")" type="text/javascript"></script>
		<script src="@Url.Content("~/Scripts/shBrushJScript.js")" type="text/javascript"></script>
		<script src="@Url.Content("~/Scripts/shBrushSql.js")" type="text/javascript"></script>
		<script src="@Url.Content("~/Scripts/shBrushXml.js")" type="text/javascript"></script>

		<script src="@Url.Content("~/Scripts/SiteScripts.js")" type="text/javascript"></script>

		@this.Html.LocalizeJavaScriptVariables()
	</head>

	<body>
		<div class="header">
			<div class="languages">
				@this.Html.Partial("LanguagesSwitch", this.Model.CultureId)
			</div>
			<div class="loginButton">
				@this.Html.RenderLoginSwitch(this.Url, this.Model.IsLogged)
			</div>
			@this.Html.RenderSiteMenu(this.Url, this.Model)
		</div>
		<div class="content">
			<div class="leftContent">
				@this.RenderBody()
			</div>
			<div class="rightContent">
				<div class="search">
					@this.Html.Partial("Search")
				</div>
				@this.Html.Action("AuthorInfoView", "Admin")
				<hr />
				<div class="tags">
					@this.Html.Action("List", "Tags", new { viewType = this.Model.ViewType, selectedTag = this.Model.FilterConfig.Tag })
				</div>
				<hr />
				@this.Html.Action("ArchiveMonthsList", "Entries", new { viewType = this.Model.ViewType, selectedYear = this.Model.FilterConfig.Year, selectedMonth = this.Model.FilterConfig.Month })
				
			</div>
			<div class="clear">
			</div>
		</div>
	</body>
</html>